<template>
    <footer>
        Copyright © 2014 todolist.cn
        <a href="javascript:;" @click="clear">clear</a>
    </footer>
</template>
<script>
export default {
    setup(props, context) {
        function clear() {
            context.emit('clear')
        }
        return {
            clear
        }
    }
}
</script>